﻿using System;
using UnityEngine;

namespace SteeringBehaviors
{
	// Token: 0x02000220 RID: 544
	public class Pursue : Seek
	{
		// Token: 0x06000B5F RID: 2911 RVA: 0x0005F745 File Offset: 0x0005D945
		public Pursue(MovementCharacter agent, IKinematic target) : base(agent, target, 0f, 0f)
		{
			this.targetAux = target;
			this.targetAux = target;
			target = new VectorKinematic(Vector3.zero);
		}

		// Token: 0x06000B60 RID: 2912 RVA: 0x0005F780 File Offset: 0x0005D980
		public override SteeringOutput GetSteering()
		{
			float magnitude = (this.targetAux.position - this.agent.transform.position).magnitude;
			float magnitude2 = this.agent.velocity.magnitude;
			if (magnitude2 <= magnitude / this.maxPrediction)
			{
				float num = this.maxPrediction;
			}
			else
			{
				float num = magnitude / magnitude2;
			}
			this.target.position = this.targetAux.position;
			return base.GetSteering();
		}

		// Token: 0x06000B61 RID: 2913 RVA: 0x0005F801 File Offset: 0x0005DA01
		private Vector3 VectorMultScalar(Vector3 vector, float f)
		{
			vector.x *= f;
			vector.y *= f;
			vector.z *= f;
			return vector;
		}

		// Token: 0x04001073 RID: 4211
		public float maxPrediction = 2f;

		// Token: 0x04001074 RID: 4212
		private IKinematic targetAux;
	}
}
